#include "pool.h"

PVOID operator new(SIZE_T size) {
  return ExAllocatePool2(POOL_FLAG_PAGED, size, 'wen');
}

PVOID operator new(SIZE_T size, ULONG tag, POOL_FLAGS flags) {
  return ExAllocatePool2(flags, size, tag);
}

PVOID operator new[](SIZE_T size) {
  return ExAllocatePool2(POOL_FLAG_PAGED, size, 'wen');
}

PVOID operator new[](SIZE_T size, ULONG tag, POOL_FLAGS flags) {
  return ExAllocatePool2(flags, size, tag);
}

VOID operator delete(PVOID p, size_t) {
  ExFreePool(p);
}

VOID operator delete[](PVOID p) {
  ExFreePool(p);
}

